Barium hydroxide is a chemical compound. Its chemical formula is Ba(OH)2. It contains barium and hydroxide ions.